﻿

// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-14 13:25:36
// 负责人：Sushee
// ===================================================================

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Component.Model;
namespace OF.Component.IDAL
{

    /// <summary>
    ///用户信息表 数据访问层接口  
    /// </summary>
    internal partial interface IUser
    {

        /// <summary>
        /// 根据断言条件获取单个用户信息表
        /// </summary>
        UserInfo QuerySingle(Expression<Func<UserInfo, bool>> predicate);

        /// <summary>
        /// 根据断言条件获获取用户信息表列表
        /// </summary>
        IList<UserInfo> QueryList(Expression<Func<UserInfo, bool>> predicate);

        /// <summary>
        /// 根据手机获取用户信息
        /// </summary>
        /// <param name="mobile"></param>
        /// <returns></returns>
        UserInfo GetUserByMobile(string mobile);

        /// <summary>
        /// 更新用户等级
        /// </summary>
        /// <param name="userID"></param>
        /// <param name="level"></param>
        /// <returns></returns>
        int UpdateUserLevel(long userID, int level);

        /// <summary>
        /// 更新用户头像
        /// </summary>
        /// <param name="userID"></param>
        /// <param name="userName"></param>
        /// <param name="headImg"></param>
        /// <returns></returns>
        int UpdateUserHead(long userID, string userName, string headImg);
        
        }


}